package com.buddy.learn.spring.framework.webmvc.servlet;

import java.util.Map;

public class BModelAndView {
    /** View instance or view name String */
//    private Object view;

    /** Model Map */
//    private ModelMap model;

    /** Optional HTTP status for the response */
//    private HttpStatus status;

    /** Indicates whether or not this instance has been cleared with a call to {@link #clear()} */
//    private boolean cleared = false;
    private String viewName;
    private Map<String,?> model;

    public BModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public BModelAndView(String viewName) {
        this.viewName = viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }

    public void setModel(Map<String, ?> model) {
        this.model = model;
    }

    public String getViewName() {
        return viewName;
    }

    public void setViewName(String viewName) {
        this.viewName = viewName;
    }
}
